package com.sjft.cloud.commons.support.datamodel.core.prop;


import com.sjft.cloud.commons.support.datamodel.core.rule.DateTimeRule;
import com.sjft.cloud.commons.support.datamodel.core.value.DateTimeValue;
import com.sjft.cloud.commons.support.datamodel.enums.ModelFieldTypeEnum;
import com.sjft.cloud.commons.support.datamodel.enums.MysqlColumnTypeEnum;
import com.sjft.cloud.commons.support.datamodel.core.ModelFieldProp;

import lombok.Getter;
import lombok.Setter;

/**
 * DateTimeType
 *
 * @author Jin
 */
@Getter
@Setter
public class DateTimeProp implements ModelFieldProp<DateTimeRule, DateTimeValue> {
    private String name = ModelFieldTypeEnum.DATE_TIME_NAME;
    private String columnType = MysqlColumnTypeEnum.DATE_TIME.getCode();
    private Integer length = 64;
    private Boolean autoIncrement = false;
    private String defaultValue = "";
    private Boolean notNull = false;
    private Boolean primaryKey = false;

    private DateTimeRule rule = new DateTimeRule();
    private DateTimeValue value = new DateTimeValue();

}
